import {Action, Actor} from 'iflux2';

export default class RegisterLogin extends Actor{
  defaultState() {
    return {
      mobile_login: 0,
      username_mobile_login: 0,
      username_mobile_reg: 0,
      username_reg: 0
    }
  }
  @Action('register-login-init')
  init(state, data) {
    return state.merge(data)
  }
  @Action('handle-setup')
  onSetting(state, data) {
    return state.merge(data);
  }
}